home *** CD-ROM | disk | FTP | other *** search
/ Champak 123 / (Vol 123) Jan 13 2011.iso / Games / check.swf / scripts / frame_3 / DoAction_2.as next >
Text File  |  2011-01-13  |  17KB  |  622 lines

  1. this.verifOverComp = function()
  2. {
  3.    okx = 1;
  4.    i = 1;
  5.    while(i <= 12)
  6.    {
  7.       linie = Math.round((_root["c" + i]._y - 50) / 40 + 1);
  8.       coloana = Math.round((_root["c" + i]._x - 50) / 40 + 1);
  9.       valo = computerMoveValue(linie,coloana);
  10.       if(valo > 0)
  11.       {
  12.          okx = 0;
  13.       }
  14.       i++;
  15.    }
  16.    return okx;
  17. };
  18. this.verifOverPlayer = function()
  19. {
  20.    okx = 1;
  21.    i = 1;
  22.    while(i <= 12)
  23.    {
  24.       linie = Math.round((_root["p" + i]._y - 50) / 40 + 1);
  25.       coloana = Math.round((_root["p" + i]._x - 50) / 40 + 1);
  26.       valo = playerMoveValue(linie,coloana);
  27.       if(valo > 0)
  28.       {
  29.          okx = 0;
  30.       }
  31.       i++;
  32.    }
  33.    return okx;
  34. };
  35. this.computerMove = function()
  36. {
  37.    valMax = 0;
  38.    linStart = 0;
  39.    colStart = 0;
  40.    linDest = 0;
  41.    colDest = 0;
  42.    kx = 1;
  43.    if(_root.sunet == 1)
  44.    {
  45.       _root.son1.start();
  46.    }
  47.    i = 1;
  48.    while(i <= 12)
  49.    {
  50.       locVect[i] = -1;
  51.       i++;
  52.    }
  53.    while(kx < 13)
  54.    {
  55.       ran = random(12) + 1;
  56.       okie = true;
  57.       i = 1;
  58.       while(i <= 12)
  59.       {
  60.          if(ran == locVect[i])
  61.          {
  62.             okie = false;
  63.          }
  64.          i++;
  65.       }
  66.       if(okie)
  67.       {
  68.          locVect[kx] = ran;
  69.          kx++;
  70.       }
  71.    }
  72.    i = 1;
  73.    while(i <= 12)
  74.    {
  75.       kxx = locVect[i];
  76.       linie = Math.round((_root["c" + kxx]._y - 50) / 40 + 1);
  77.       coloana = Math.round((_root["c" + kxx]._x - 50) / 40 + 1);
  78.       valoare = computerMoveValue(linie,coloana);
  79.       if(valoare > valMax)
  80.       {
  81.          valMax = valoare;
  82.          linStart = linie;
  83.          colStart = coloana;
  84.          linDest = _root.flin;
  85.          colDest = _root.fcol;
  86.       }
  87.       i++;
  88.    }
  89.    piece2 = matPosC[linStart][colStart];
  90.    moveY = (linDest - linStart) * 40;
  91.    moveX = (colDest - colStart) * 40;
  92.    _root["sq" + linStart + "" + colStart].play();
  93.    _root["sq" + linDest + "" + colDest].play();
  94.    _root["c" + piece2]._x += moveX;
  95.    _root["c" + piece2]._y += moveY;
  96.    if(linDest == 1)
  97.    {
  98.       _root["c" + piece2].gotoAndStop(2);
  99.       _root.crowned2[piece2] = 1;
  100.    }
  101.    matPosC[linDest][colDest] = matPosC[linStart][colStart];
  102.    matPosC[linStart][colStart] = 0;
  103.    if(valMax == 4)
  104.    {
  105.       piece3 = matPosP[(linDest + linStart) / 2][(colDest + colStart) / 2];
  106.       _root["p" + piece3]._x = -1000;
  107.       matPosP[(linDest + linStart) / 2][(colDest + colStart) / 2] = 0;
  108.       _root.playerScore--;
  109.       if(_root.playerScore == 0)
  110.       {
  111.          _root.gOver.play();
  112.          _root.gOver.msg.text = "You lose!";
  113.       }
  114.       plScore1.text = _root.playerScore;
  115.       plScore2.text = _root.playerScore;
  116.       valoare2 = computerMoveValue(lindest,coldest);
  117.       if(valoare2 == 4)
  118.       {
  119.          linie = Math.round((_root["c" + piece2]._y - 50) / 40 + 1);
  120.          coloana = Math.round((_root["c" + piece2]._x - 50) / 40 + 1);
  121.          linStart = linie;
  122.          colStart = coloana;
  123.          linDest = _root.flin;
  124.          colDest = _root.fcol;
  125.          moveY = (linDest - linStart) * 40;
  126.          moveX = (colDest - colStart) * 40;
  127.          _root["sq" + linStart + "" + colStart].play();
  128.          _root["sq" + linDest + "" + colDest].play();
  129.          _root["c" + piece2]._x += moveX;
  130.          _root["c" + piece2]._y += moveY;
  131.          if(linDest == 1)
  132.          {
  133.             _root["c" + piece2].gotoAndStop(2);
  134.             _root.crowned2[piece2] = 1;
  135.          }
  136.          matPosC[linDest][colDest] = matPosC[linStart][colStart];
  137.          matPosC[linStart][colStart] = 0;
  138.          piece3 = matPosP[(linDest + linStart) / 2][(colDest + colStart) / 2];
  139.          _root["p" + piece3]._x = -1000;
  140.          matPosP[(linDest + linStart) / 2][(colDest + colStart) / 2] = 0;
  141.          _root.playerScore--;
  142.          if(_root.playerScore == 0)
  143.          {
  144.             _root.gOver.play();
  145.             _root.gOver.msg.text = "You lose!";
  146.          }
  147.          plScore1.text = _root.playerScore;
  148.          plScore2.text = _root.playerScore;
  149.       }
  150.       valoare2 = computerMoveValue(lindest,coldest);
  151.       if(valoare2 == 4)
  152.       {
  153.          linie = Math.round((_root["c" + piece2]._y - 50) / 40 + 1);
  154.          coloana = Math.round((_root["c" + piece2]._x - 50) / 40 + 1);
  155.          linStart = linie;
  156.          colStart = coloana;
  157.          linDest = _root.flin;
  158.          colDest = _root.fcol;
  159.          moveY = (linDest - linStart) * 40;
  160.          moveX = (colDest - colStart) * 40;
  161.          _root["sq" + linStart + "" + colStart].play();
  162.          _root["sq" + linDest + "" + colDest].play();
  163.          _root["c" + piece2]._x += moveX;
  164.          _root["c" + piece2]._y += moveY;
  165.          if(linDest == 1)
  166.          {
  167.             _root["c" + piece2].gotoAndStop(2);
  168.             _root.crowned2[piece2] = 1;
  169.          }
  170.          matPosC[linDest][colDest] = matPosC[linStart][colStart];
  171.          matPosC[linStart][colStart] = 0;
  172.          piece3 = matPosP[(linDest + linStart) / 2][(colDest + colStart) / 2];
  173.          _root["p" + piece3]._x = -1000;
  174.          matPosP[(linDest + linStart) / 2][(colDest + colStart) / 2] = 0;
  175.          _root.playerScore--;
  176.          if(_root.playerScore == 0)
  177.          {
  178.             _root.gOver.play();
  179.             _root.gOver.msg.text = "You lose!";
  180.          }
  181.          plScore1.text = _root.playerScore;
  182.          plScore2.text = _root.playerScore;
  183.       }
  184.    }
  185.    if(verifOverComp() == 1)
  186.    {
  187.       _root.gOver.play();
  188.       _root.gOver.msg.text = "You win!";
  189.    }
  190.    if(verifOverPlayer() == 1)
  191.    {
  192.       _root.gOver.play();
  193.       _root.gOver.msg.text = "You lose!";
  194.    }
  195. };
  196. this.computerMoveValue = function(ilin, icol)
  197. {
  198.    val = 0;
  199.    _root.flin = 0;
  200.    _root.fcol = 0;
  201.    piece4 = matPosC[ilin][icol];
  202.    if(_root.crowned2[piece4] == 1)
  203.    {
  204.       if(matPosP[ilin + 1][icol + 1] == 0 && matPosC[ilin + 1][icol + 1] == 0)
  205.       {
  206.          val = 1;
  207.          _root.flin = ilin + 1;
  208.          _root.fcol = icol + 1;
  209.       }
  210.       if(matPosP[ilin + 1][icol - 1] == 0 && matPosC[ilin + 1][icol - 1] == 0)
  211.       {
  212.          val = 1;
  213.          _root.flin = ilin + 1;
  214.          _root.fcol = icol - 1;
  215.       }
  216.    }
  217.    if(matPosP[ilin - 1][icol + 1] == 0 && matPosC[ilin - 1][icol + 1] == 0)
  218.    {
  219.       val = 1;
  220.       _root.flin = ilin - 1;
  221.       _root.fcol = icol + 1;
  222.    }
  223.    if(matPosP[ilin - 1][icol - 1] == 0 && matPosC[ilin - 1][icol - 1] == 0)
  224.    {
  225.       val = 1;
  226.       _root.flin = ilin - 1;
  227.       _root.fcol = icol - 1;
  228.    }
  229.    if(_root.crowned2[piece4] == 1)
  230.    {
  231.       if(matPosP[ilin + 2][icol + 2] == 0 && matPosP[ilin + 2][icol] == 0)
  232.       {
  233.          if(matPosP[ilin + 1][icol + 1] == 0 && matPosC[ilin + 1][icol + 1] == 0)
  234.          {
  235.             val = 2;
  236.             _root.flin = ilin + 1;
  237.             _root.fcol = icol + 1;
  238.          }
  239.       }
  240.       if(matPosP[ilin + 2][icol - 2] == 0 && matPosP[ilin + 2][icol] == 0)
  241.       {
  242.          if(matPosP[ilin + 1][icol - 1] == 0 && matPosC[ilin + 1][icol - 1] == 0)
  243.          {
  244.             val = 2;
  245.             _root.flin = ilin + 1;
  246.             _root.fcol = icol - 1;
  247.          }
  248.       }
  249.    }
  250.    if(matPosP[ilin - 2][icol + 2] == 0 && matPosP[ilin - 2][icol] == 0)
  251.    {
  252.       if(matPosP[ilin - 1][icol + 1] == 0 && matPosC[ilin - 1][icol + 1] == 0)
  253.       {
  254.          val = 2;
  255.          _root.flin = ilin - 1;
  256.          _root.fcol = icol + 1;
  257.       }
  258.    }
  259.    if(matPosP[ilin - 2][icol - 2] == 0 && matPosP[ilin - 2][icol] == 0)
  260.    {
  261.       if(matPosP[ilin - 1][icol - 1] == 0 && matPosC[ilin - 1][icol - 1] == 0)
  262.       {
  263.          val = 2;
  264.          _root.flin = ilin - 1;
  265.          _root.fcol = icol - 1;
  266.       }
  267.    }
  268.    if(_root.crowned2[piece4] == 1)
  269.    {
  270.       if(matPosC[ilin + 2][icol + 2] != 0 && matPosP[ilin + 3][icol + 3] != 0)
  271.       {
  272.          if(matPosC[ilin + 1][icol + 1] == 0 && matPosP[ilin + 1][icol + 1] == 0)
  273.          {
  274.             val = 3;
  275.             _root.flin = ilin + 1;
  276.             _root.fcol = icol + 1;
  277.          }
  278.       }
  279.       if(matPosC[ilin + 2][icol - 2] != 0 && matPosP[ilin + 3][icol - 3] != 0)
  280.       {
  281.          if(matPosC[ilin + 1][icol - 1] == 0 && matPosP[ilin + 1][icol - 1] == 0)
  282.          {
  283.             val = 3;
  284.             _root.flin = ilin + 1;
  285.             _root.fcol = icol - 1;
  286.          }
  287.       }
  288.    }
  289.    if(matPosC[ilin - 2][icol + 2] != 0 && matPosP[ilin - 3][icol + 3] != 0)
  290.    {
  291.       if(matPosC[ilin - 1][icol + 1] == 0 && matPosP[ilin - 1][icol + 1] == 0)
  292.       {
  293.          val = 3;
  294.          _root.flin = ilin - 1;
  295.          _root.fcol = icol + 1;
  296.       }
  297.    }
  298.    if(matPosC[ilin - 2][icol - 2] != 0 && matPosP[ilin - 3][icol - 3] != 0)
  299.    {
  300.       if(matPosC[ilin - 1][icol - 1] == 0 && matPosP[ilin - 1][icol - 1] == 0)
  301.       {
  302.          val = 3;
  303.          _root.flin = ilin - 1;
  304.          _root.fcol = icol - 1;
  305.       }
  306.    }
  307.    if(_root.crowned2[piece4] == 1)
  308.    {
  309.       if(matPosP[ilin + 1][icol + 1] != 0)
  310.       {
  311.          if(matPosP[ilin + 2][icol + 2] == 0 && matPosC[ilin + 2][icol + 2] == 0)
  312.          {
  313.             val = 4;
  314.             _root.flin = ilin + 2;
  315.             _root.fcol = icol + 2;
  316.          }
  317.       }
  318.       if(matPosP[ilin + 1][icol - 1] != 0)
  319.       {
  320.          if(matPosP[ilin + 2][icol - 2] == 0 && matPosC[ilin + 2][icol - 2] == 0)
  321.          {
  322.             val = 4;
  323.             _root.flin = ilin + 2;
  324.             _root.fcol = icol - 2;
  325.          }
  326.       }
  327.    }
  328.    if(matPosP[ilin - 1][icol + 1] != 0)
  329.    {
  330.       if(matPosP[ilin - 2][icol + 2] == 0 && matPosC[ilin - 2][icol + 2] == 0)
  331.       {
  332.          val = 4;
  333.          _root.flin = ilin - 2;
  334.          _root.fcol = icol + 2;
  335.       }
  336.    }
  337.    if(matPosP[ilin - 1][icol - 1] != 0)
  338.    {
  339.       if(matPosP[ilin - 2][icol - 2] == 0 && matPosC[ilin - 2][icol - 2] == 0)
  340.       {
  341.          val = 4;
  342.          _root.flin = ilin - 2;
  343.          _root.fcol = icol - 2;
  344.       }
  345.    }
  346.    return val;
  347. };
  348. this.playerMoveValue = function(ilin, icol)
  349. {
  350.    val2 = 0;
  351.    piece6 = matPosP[ilin][icol];
  352.    if(matPosP[ilin + 1][icol + 1] == 0 && matPosP[ilin + 1][icol + 1] == 0)
  353.    {
  354.       val2 = 1;
  355.    }
  356.    if(matPosC[ilin + 1][icol - 1] == 0 && matPosP[ilin + 1][icol - 1] == 0)
  357.    {
  358.       val2 = 1;
  359.    }
  360.    if(_root.crowned[piece6] == 1)
  361.    {
  362.       if(matPosC[ilin - 1][icol + 1] == 0 && matPosP[ilin - 1][icol + 1] == 0)
  363.       {
  364.          val2 = 1;
  365.       }
  366.       if(matPosC[ilin - 1][icol - 1] == 0 && matPosP[ilin - 1][icol - 1] == 0)
  367.       {
  368.          val2 = 1;
  369.       }
  370.    }
  371.    if(matPosC[ilin + 2][icol + 2] == 0 && matPosC[ilin + 2][icol] == 0)
  372.    {
  373.       if(matPosC[ilin + 1][icol + 1] == 0 && matPosP[ilin + 1][icol + 1] == 0)
  374.       {
  375.          val2 = 2;
  376.       }
  377.    }
  378.    if(matPosC[ilin + 2][icol - 2] == 0 && matPosC[ilin + 2][icol] == 0)
  379.    {
  380.       if(matPosC[ilin + 1][icol - 1] == 0 && matPosP[ilin + 1][icol - 1] == 0)
  381.       {
  382.          val2 = 2;
  383.       }
  384.    }
  385.    if(_root.crowned[piece6] == 1)
  386.    {
  387.       if(matPosC[ilin - 2][icol + 2] == 0 && matPosC[ilin - 2][icol] == 0)
  388.       {
  389.          if(matPosC[ilin - 1][icol + 1] == 0 && matPosP[ilin - 1][icol + 1] == 0)
  390.          {
  391.             val = 2;
  392.          }
  393.       }
  394.       if(matPosC[ilin - 2][icol - 2] == 0 && matPosC[ilin - 2][icol] == 0)
  395.       {
  396.          if(matPosC[ilin - 1][icol - 1] == 0 && matPosP[ilin - 1][icol - 1] == 0)
  397.          {
  398.             val2 = 2;
  399.          }
  400.       }
  401.    }
  402.    if(matPosP[ilin + 2][icol + 2] != 0 && matPosC[ilin + 3][icol + 3] != 0)
  403.    {
  404.       if(matPosP[ilin + 1][icol + 1] == 0 && matPosC[ilin + 1][icol + 1] == 0)
  405.       {
  406.          val2 = 3;
  407.       }
  408.    }
  409.    if(matPosP[ilin + 2][icol - 2] != 0 && matPosC[ilin + 3][icol - 3] != 0)
  410.    {
  411.       if(matPosP[ilin + 1][icol - 1] == 0 && matPosC[ilin + 1][icol - 1] == 0)
  412.       {
  413.          val2 = 3;
  414.       }
  415.    }
  416.    if(_root.crowned[piece6] == 1)
  417.    {
  418.       if(matPosP[ilin - 2][icol + 2] != 0 && matPosC[ilin - 3][icol + 3] != 0)
  419.       {
  420.          if(matPosP[ilin - 1][icol + 1] == 0 && matPosC[ilin - 1][icol + 1] == 0)
  421.          {
  422.             val2 = 3;
  423.          }
  424.       }
  425.       if(matPosP[ilin - 2][icol - 2] != 0 && matPosC[ilin - 3][icol - 3] != 0)
  426.       {
  427.          if(matPosP[ilin - 1][icol - 1] == 0 && matPosC[ilin - 1][icol - 1] == 0)
  428.          {
  429.             val2 = 3;
  430.          }
  431.       }
  432.    }
  433.    if(matPosC[ilin + 1][icol + 1] != 0 && matPosC[ilin + 1][icol + 1] != null)
  434.    {
  435.       if(matPosC[ilin + 2][icol + 2] == 0 && matPosP[ilin + 2][icol + 2] == 0)
  436.       {
  437.          val2 = 4;
  438.       }
  439.    }
  440.    if(matPosC[ilin + 1][icol - 1] != 0 && matPosC[ilin + 1][icol - 1] != null)
  441.    {
  442.       if(matPosC[ilin + 2][icol - 2] == 0 && matPosP[ilin + 2][icol - 2] == 0)
  443.       {
  444.          val2 = 4;
  445.       }
  446.    }
  447.    if(_root.crowned[piece6] == 1)
  448.    {
  449.       if(matPosC[ilin - 1][icol + 1] != 0 && matPosC[ilin - 1][icol + 1] != null)
  450.       {
  451.          if(matPosC[ilin - 2][icol + 2] == 0 && matPosP[ilin - 2][icol + 2] == 0)
  452.          {
  453.             val2 = 4;
  454.          }
  455.       }
  456.       if(matPosC[ilin - 1][icol - 1] != 0 && matPosC[ilin - 1][icol - 1] != null)
  457.       {
  458.          if(matPosC[ilin - 2][icol - 2] == 0 && matPosP[ilin - 2][icol - 2] == 0)
  459.          {
  460.             val2 = 4;
  461.          }
  462.       }
  463.    }
  464.    return val2;
  465. };
  466. this.movePiece = function(xini, yini, xfin, yfin)
  467. {
  468.    aux1 = matPosP[xini][yini];
  469.    _root["p" + aux1]._x = xfin;
  470.    _root["p" + aux1]._y = yfin;
  471.    _root["p" + aux1]._alpha = 100;
  472.    aux3 = _root.activePiece[1];
  473.    aux4 = _root.activePiece[2];
  474.    SqXPos = Math.round((yfin - 50) / 40 + 1);
  475.    SqYPos = Math.round((xfin - 50) / 40 + 1);
  476.    if(SqXPos == 8)
  477.    {
  478.       _root["p" + aux1].gotoAndStop(2);
  479.       _root.crowned[aux1] = 1;
  480.    }
  481.    if(Math.abs(SqXPos - aux3) == 2)
  482.    {
  483.       auxlin = (SqXPos + aux3) / 2;
  484.       auxcol = (SqYPos + aux4) / 2;
  485.       auxPiece = matPosC[auxlin][auxcol];
  486.       _root["c" + auxPiece]._x = -1000;
  487.       matPosC[auxlin][auxcol] = 0;
  488.       _root.computerScore--;
  489.       if(_root.computerScore == 0)
  490.       {
  491.          _root.gOver.play();
  492.          _root.gOver.msg.text = "You win!";
  493.       }
  494.       computerScore1.text = _root.computerScore;
  495.       computerScore2.text = _root.computerScore;
  496.    }
  497.    _root.matPosP[SqXPos][SqYPos] = _root.matPosP[aux3][aux4];
  498.    _root.matPosP[aux3][aux4] = 0;
  499.    activePiece[1] = null;
  500.    activePiece[2] = null;
  501. };
  502. this.validMove = function(xini, yini, xfin, yfin)
  503. {
  504.    ok = true;
  505.    piece1 = matPosP[xini][yini];
  506.    if(kxxxx == 1)
  507.    {
  508.       if(Math.abs(xini - xfin) != 2)
  509.       {
  510.          ok = false;
  511.       }
  512.    }
  513.    if(Math.abs(xini - xfin) + Math.abs(yini - yfin) != 2 && Math.abs(xini - xfin) + Math.abs(yini - yfin) != 4)
  514.    {
  515.       ok = false;
  516.    }
  517.    if(Math.abs(xini - xfin) == 0)
  518.    {
  519.       ok = false;
  520.    }
  521.    if(Math.abs(yini - yfin) == 0)
  522.    {
  523.       ok = false;
  524.    }
  525.    if(Math.abs(xini - xfin) + Math.abs(yini - yfin) == 4)
  526.    {
  527.       if(matPosC[(xini + xfin) / 2][(yini + yfin) / 2] == 0)
  528.       {
  529.          ok = false;
  530.       }
  531.    }
  532.    if(crowned[piece1] == 0 && xini - xfin > 0)
  533.    {
  534.       ok = false;
  535.    }
  536.    if(matPosC[xfin][yfin] != 0)
  537.    {
  538.       ok = false;
  539.    }
  540.    if(matPosP[xfin][yfin] != 0)
  541.    {
  542.       ok = false;
  543.    }
  544.    if(ok == false)
  545.    {
  546.       aux2 = matPosP[xini][yini];
  547.       if(_root.kxxxx == 0)
  548.       {
  549.          _root["p" + aux2]._alpha = 100;
  550.          activePiece[1] = null;
  551.          activePiece[2] = null;
  552.       }
  553.    }
  554.    return ok;
  555. };
  556. this.initMatPosP = function()
  557. {
  558.    matPosP = new Array();
  559.    i = 1;
  560.    while(i <= 8)
  561.    {
  562.       matPosP[i] = new Array();
  563.       i++;
  564.    }
  565.    i = 1;
  566.    while(i <= 8)
  567.    {
  568.       j = 1;
  569.       while(j <= 8)
  570.       {
  571.          matPosP[i][j] = 0;
  572.          j++;
  573.       }
  574.       i++;
  575.    }
  576.    matPosP[1][1] = 1;
  577.    matPosP[1][3] = 2;
  578.    matPosP[1][5] = 3;
  579.    matPosP[1][7] = 4;
  580.    matPosP[2][2] = 5;
  581.    matPosP[2][4] = 6;
  582.    matPosP[2][6] = 7;
  583.    matPosP[2][8] = 8;
  584.    matPosP[3][1] = 9;
  585.    matPosP[3][3] = 10;
  586.    matPosP[3][5] = 11;
  587.    matPosP[3][7] = 12;
  588. };
  589. this.initMatPosC = function()
  590. {
  591.    matPosC = new Array();
  592.    i = 0;
  593.    while(i <= 9)
  594.    {
  595.       matPosC[i] = new Array();
  596.       i++;
  597.    }
  598.    i = 0;
  599.    while(i <= 9)
  600.    {
  601.       j = 0;
  602.       while(j <= 9)
  603.       {
  604.          matPosC[i][j] = 0;
  605.          j++;
  606.       }
  607.       i++;
  608.    }
  609.    matPosC[8][2] = 1;
  610.    matPosC[8][4] = 2;
  611.    matPosC[8][6] = 3;
  612.    matPosC[8][8] = 4;
  613.    matPosC[7][1] = 5;
  614.    matPosC[7][3] = 6;
  615.    matPosC[7][5] = 7;
  616.    matPosC[7][7] = 8;
  617.    matPosC[6][2] = 9;
  618.    matPosC[6][4] = 10;
  619.    matPosC[6][6] = 11;
  620.    matPosC[6][8] = 12;
  621. };
  622.